package com.example.service.impl;

import com.example.dao.IUserDao;
import com.example.pojo.User;
import com.example.service.IUserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("userService")
public class IUserServiceImpl implements IUserService {

    @Autowired
    public IUserDao udao;

    @Override
    public User getUserById(int id) {
        return udao.selectByPrimaryKey(id);
    }

    @Override
    public User getUser(User u) {
        // TODO Auto-generated method stub
        return udao.findUser(u);
    }
}
